
#include "movables.h"


void Movables::set_location(int new_x_loc, int new_y_loc)
{
	_x_loc = new_x_loc;
	_y_loc = new_y_loc;
}

void Movables::set_x_boundary(int new_x_boundary)
{
	_x_boundary = new_x_boundary;	
}
void Movables::set_y_boundary(int new_y_boundary)
{
	_y_boundary = new_y_boundary;
}

void Movables::set_direction(Direction new_dir)
{
	_direction = new_dir;
}
void Movables::set_speed(int new_speed)
{
	_speed = new_speed;

}
void Movables::set_status(Status new_status)
{
	_status = new_status;
}

void Movables::set_object_type(Movable_type object_type)
{
	_type = object_type;
}

int Movables::get_x_location()
{
	return _x_loc;
}
int Movables::get_y_location()
{
	return _y_loc;
}

int Movables::get_x_boundary()
{
	return _x_boundary;
}

int Movables::get_y_boundary()
{
	return _y_boundary;
}

int Movables::get_direction()
{
//convert from enumerated type Direction to int
	return static_cast<int>(_direction);
}
	
int Movables::get_speed()
{
	return _speed;
}
bool Movables::get_status()
{
	//convert from enumerated type Status which is either 0 or 1 to type bool
	return static_cast<bool>(_status);  
}

int Movables::get_object_type()
{
//convert from enumerated type Object_type to int
	return static_cast<int>(_type);
}